package com.lemon.core.base.pojo.tree;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 树形节点
 *
 * @author pan
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class TreeNode extends BaseNode {

    /**
     * 节点名称
     */
    protected String label;

    public void add(TreeNode node) {
        children.add(node);
    }
}
